<?php
/**
 * Language pair selection
 * 
 * @author Joseph Chereshnovsky <joseph.chereshnovsky@gmail.com>
 * @version 1.0
 */
$this->headTitle( $this->_('Working language pair') . ' :: ');

$this->headLink()->appendStylesheet(APP_URL . '/css/translation/pair.css');

$source_lang = $this->User->source_lang;
$target_lang = $this->User->target_lang
?>
<div id="language-pair-selector-block">

<h1><?php echo $this->_('Language pair') ?></h1>

<form action="<?php echo APP_URL ?>/translation/pair" method="post">
<p>
	<label for="source_lang"><?php echo $this->_('Source language') ?></label>
	<select id="source_lang" name="source_lang">
		<option value="">[<?php echo $this->_('please select') ?>]</option>
		<?php foreach ($this->availLanguages as $key => $lang): ?>
		<option <?php if ($source_lang == $lang->id) echo 'selected="selected"' ?> value="<?php echo $lang->id ?>"><?php echo $lang->langI18n ?></option>
		<?php endforeach; ?>
	</select>
</p>
<p>
	<label for="target_lang"><?php echo $this->_('Target language')?></label>
	<select id="target_lang" name="target_lang">
		<option value="">[<?php echo $this->_('please select') ?>]</option>
		<?php foreach ($this->availLanguages as $key => $lang): ?>
		<option <?php if ($target_lang == $lang->id) echo 'selected="selected"' ?> value="<?php echo $lang->id ?>"><?php echo $lang->langI18n ?></option>
		<?php endforeach; ?>
	</select>
</p>
<p>
	<input type="submit" value="<?php echo $this->_('Save') ?>" />
</p>
</form>

</div>